#coding=utf-8
#!/usr/bin/python

import socket,select,sys,time
import os

def main():
    for i in range(1, 10000):
        try:
            ss = socket.socket()
            ss.connect(("t238.sky-mobi.com", 8700))
            ss.send("GET /shop/query_gift_menu HTTP/1.1\
Accept: */*\
Referer: 127.0.0.1\
Accept-Language: zh-cn\
User-Agent: Mozilla/4.0\
Accept-Encoding: gzip, deflate\
Host: www.52le.com\
Connection: Keep-Alive\
Cookie: AAA=123;BBB=456;JSESSIONID=superman007\r\n\r\n")
            #buffer = ss.recv(20)
        except:
            pass
    print "task end！"
        
        
if __name__ == '__main__':
    #PrintLog()
    main()

    
    


























